package ui;

import factory.BeanFactory;
import service.IUserService;
import service.impl.UserServiceImpl;

/**
* 模拟客户端访问
*/
public class TestClient {

   public static void main(String[] args) {
       //实例化service
//       IUserService userService = new UserServiceImpl();
       IUserService userService = (IUserService)BeanFactory.getBean("userService");
       userService.saveUser();
  }
}